using System.ComponentModel;
using System.Runtime.CompilerServices;

namespace CPlatePrintSys.Win.Models
{
    public class StageRuleModel : INotifyPropertyChanged
    {
        private string _stageName;
        private string _ruleType;

        public string StageName
        {
            get { return _stageName; }
            set
            {
                _stageName = value;
                OnPropertyChanged();
            }
        }

        public string RuleType
        {
            get { return _ruleType; }
            set
            {
                _ruleType = value;
                OnPropertyChanged();
            }
        }

        public event PropertyChangedEventHandler PropertyChanged;

        protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null)
        {
            PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
        }
    }
} 